package model

type MallUser struct {
	UserID        uint   `json:"userId" gorm:"type:bigint(20);primary_key;not null;autoIncrement"`
	NickName      string `json:"nickName" gorm:"type:varchar(50);not null"`
	LoginName     string `json:"loginName" gorm:"type:varchar(11);not null"`
	PasswordMd5   string `json:"passwordMd5" gorm:"type:varchar(255);not null"`
	IntroduceSign string `json:"introduceSign" gorm:"type:varchar(100);not null"`
	IsDeleted     uint   `json:"isDeleted" gorm:"type:tinyint(4);not null"`
	LockedFlag    uint   `json:"lockedFlag" gorm:"type:tinyint(4);not null"`
	CreateTime    Time   `json:"createTime" gorm:"type:datetime;not null;default:current_timestamp"`
}

// TableName 自定义表明，不适用默认的mall_users
func (receiver MallUser) TableName() string {
	return "tb_newbee_mall_user"
}
